package util;

public class ConfigManager {

	// private static ConfigManager config = new ConfigManager();
	//
	// public static ConfigManager getConfig() {
	// return config;
	// }

	// 懒汉模式
	private static ConfigManager config;// new ConfigManager();

	public static ConfigManager getConfig() {

		if (config == null) {
			synchronized (ConfigManager.class) {
				config = new ConfigManager();
			}
		}
		System.out.println("init ok");
		return config;
	}

	private ConfigManager() {
		System.out.println("对象被创建了。。。");
	}

	public void sayHello() {

		System.out.println("我是秦始皇");
		System.out.println("我是秦始皇");
		System.out.println("我是俞伟我最帅");

		System.out.println("我是秦始皇1111111");

	}
}
